import java.util.*;
import java.text.*;

public class Employee {
    String name;
    Date dateOfBirth;
    double currentSalary;
    String designation;
    
    public Employee() {
        
    }
    
    public Employee(String n, Date b, double s, String d) {
        this.name = n;
        this.dateOfBirth = b;
        this.currentSalary = s;
        this.designation = d;
    }
    
    public Employee(String n, int y, int m, int d, double s, String des) {
        GregorianCalendar cl = new GregorianCalendar(y, m, d);
        this.name = n;
        this.dateOfBirth = cl.getTime();
        this.currentSalary = s;
        this.designation = des;
    }
    
    public double getCurrentSalary() {
        return currentSalary;
    }
    
    public Date getDateOfBirth() {
        return dateOfBirth;
    }
    
    public String getDesignation() {
        return designation;
    }
    
    public String getName() {
        return name;
    }
    
    public void setCurrentSalary(double currentSalary) {
        
    }
    public void setDateOfBirth(Date dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }
    
    public void setDesignation(String designation) {
        this.designation = designation;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    public void showEmployeeDetails() {
        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");
        System.out.format("%1$-20s %2$12s %3$10.2f %4$-20s\n",
                name,
                df.format(dateOfBirth),
                currentSalary,
                designation);
    }
    
    @Deprecated
    public void display() {
        showEmployeeDetails();
    }
    public void input() {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("\n");
        System.out.print("Input name : ");
        name = sc.next();
        int year,month,day;
        System.out.print("Input year : ");
        year = sc.nextInt();
        System.out.print("Input month : ");
        month = sc.nextInt();
        System.out.print("Input day : ");
        day = sc.nextInt();
        GregorianCalendar cl = new GregorianCalendar(year,month,day);
        this.dateOfBirth = cl.getTime();
        System.out.print("Input currentSalary : ");
        currentSalary = sc.nextDouble();
        System.out.print("Input designation : ");
        designation = sc.next();
    }
}
